/**
 * 
 */
package it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.events;

import org.json.simple.JSONObject;

import it.unical.canonaco.rende.igpe.game.cbv.guilayer.match.UtilityCircle;
import it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.GUIDStorage;
import it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.component.pawn.Character;

/**
 * @author Massimo Canonaco
 *
 */
public class SelectedCharacterEvent implements GenericEvent 
{

	/** */ //31942
	static public final float GUID = GUIDStorage.SELECTED_CHARACTER_EVENT;
	
	/** */
	private Character character;
	
	/** */
	private UtilityCircle circleInfo;
//	/** */
//	private int eventRow;
//	
//	/** */
//	private int eventColumn;
	
	public SelectedCharacterEvent(final Character pawn, final int row, final int column, final float radius)
	{
		character = pawn;
		circleInfo = new UtilityCircle();
		
		circleInfo.setCenterRow(row);
		circleInfo.setCenterColumn(column);
		circleInfo.setRadius(radius);
//		eventRow = row;
//		eventColumn = column;
	}
	
	/* (non-Javadoc)
	 * @see it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.events.GenericEvent#getGUID()
	 */
	@Override
	public float getGUID() 
	{
		return GUID;
	}

	/* (non-Javadoc)
	 * @see it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.events.GenericEvent#getName()
	 */
	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * @return the character
	 */
	public Character getCharacter() {
		return character;
	}

//	/**
//	 * @return the eventRow
//	 */
//	public int getEventRow() {
//		return eventRow;
//	}
//
//	/**
//	 * @return the eventColumn
//	 */
//	public int getEventColumn() {
//		return eventColumn;
//	}

	/**
	 * @return the circleInfo
	 */
	public UtilityCircle getCircleInfo() {
		return circleInfo;
	}

	/**
	 * @param circleInfo the circleInfo to set
	 */
	public void setCircleInfo(UtilityCircle circleInfo) {
		this.circleInfo = circleInfo;
	}

	@Override
	public JSONObject getAsJSONObject() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setFromJSONOnbject(JSONObject object) {
		// TODO Auto-generated method stub
		
	}

}
